package GUI;

/**
 * A blank user main that contains all it's panels.
 * @author Benny
 *
 */
public class UserMainScreen {
	
	  public MainFrame mf;
	  public UpdateUserCardGUI updateUser;
	  public ViewUserCardGUI viewUser;
	  public ExtendBorrowGUI extendBorrow;
	  public OrderBookGUI orderBook;
	  public SearchBookGUI bookSearch;
	  public UserRecentActivitiesGUI recentActivities;
	  
	 /**
	  * Create the user main screen panel. 	  
	  * @param M Instance of the main Frame of the program 
	  */
	 public UserMainScreen(MainFrame M){
		 
		 
		 this.mf=M;
		 updateUser= new UpdateUserCardGUI(M);
		 updateUser.setBounds(0, 0, 620, 580);
		 mf.getContentPane().add(updateUser);
		 
		 viewUser= new ViewUserCardGUI(M);
		 viewUser.setBounds(0, 0, 620, 580);
		 mf.getContentPane().add(viewUser);

		 bookSearch= new SearchBookGUI(M);
		 bookSearch.setBounds(0, 0, 620, 580);
		 mf.getContentPane().add(bookSearch);
		 
		 extendBorrow= new ExtendBorrowGUI(M);
		 extendBorrow.setBounds(0, 0, 620, 580);
		 mf.getContentPane().add(extendBorrow);
		 
		 orderBook= new OrderBookGUI(M);
		 orderBook.setBounds(0, 0, 620, 580);
		 mf.getContentPane().add(orderBook);
		 
		 recentActivities= new UserRecentActivitiesGUI(M);
		 recentActivities.setBounds(0, 0, 620, 580);
		 mf.getContentPane().add(recentActivities);
	
		 viewUser.setVisible(false);
		 recentActivities.setVisible(false);
		 orderBook.setVisible(false);
		 extendBorrow.setVisible(false);
		 bookSearch.setVisible(false);
		 updateUser.setVisible(false);
	 } 
}
